class Student(object):
    count = 0
    def __init__(self, name):
        self.name = name
        Student.count=Student.count+1
        print("实例名：",self.name,"属性值：",Student.count)
stu1=Student("小张")
stu2=Student("小李")
stu3=Student("小朱")